//
//  NSView+Util.swift
//  iDev
//
//  Created by lbxia on 2021/8/29.
//

import Foundation
import Cocoa

extension NSView{
    
    public func setBackgroundColor(_ color: NSColor)  {
        self.wantsLayer = true
        self.layer?.backgroundColor = color.cgColor
    }
}
